package com.zjt.entity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: xueyanbeijing
 * Date: 12-8-24
 * Time: AM5:42
 * 客户端用户信息表
 * 包含客户端的各种信息，串号（IMEI）,ID,其他基本信息等
 * To change this template use File | Settings | File Templates.
 */
@Entity
//表名与类名不相同时重新定义表名.
@Table(name="s_client_user")
public class ClientUser extends BaseEntity {
    private String nickName; //昵称 [可以为空]
    private String email;  //邮箱  [可以为空]
    private String passwd; //密码  [可以为空]
    private String mdn;     //手机号 [可以为空]
    private String sex ;    //性别   [可以为空]

    //软、硬件信息
    private String version;  //客户端版本 [可以为空]
    private String platform; //手机平台,比如: iphone、android  [可以为空]
    private String imei;  //手机串号 [可以为空]

    private Date lastLoginTime;
    private Integer loginCount = 0;

    private Integer status ;
    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPasswd() {
        return passwd;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    public String getMdn() {
        return mdn;
    }

    public void setMdn(String mdn) {
        this.mdn = mdn;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public Integer getLoginCount() {
        return loginCount;
    }

    public void setLoginCount(Integer loginCount) {
        this.loginCount = loginCount;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "ClientUser{" +
                "nickName='" + nickName + '\'' +
                ", email='" + email + '\'' +
                ", passwd='" + passwd + '\'' +
                ", mdn='" + mdn + '\'' +
                ", sex='" + sex + '\'' +
                ", version='" + version + '\'' +
                ", platform='" + platform + '\'' +
                ", imei='" + imei + '\'' +
                ", lastLoginTime=" + lastLoginTime +
                ", loginCount=" + loginCount +
                ", status=" + status +
                '}';
    }
}
